import { createApp } from "vue";
import App from "./App.vue";
import "./index.css";
import router from "./router";
import "virtual:svg-icons-register"; // 引入注册脚本
import SvgIcon from "@/components/svgIcon/index.vue"; // 引入组件
import TreeItems from "@cps/tree-items/index.vue";
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css";
import "./index.scss";
import piniaStore from "./store";
createApp(App)
	.component("svg-icon", SvgIcon)
	.component("tree-items", TreeItems)
	.use(piniaStore)
	.use(router)
	.use(ElementPlus, {
		locale: zhCn,
	})
	.mount("#app");
